package com.hamu.service;

import com.hamu.pojo.Article;
import com.hamu.pojo.PageBean;

import java.util.List;

public interface ArticleService {
    //新增文章
    void add(Article article);
    //条件分页列表查询
    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state,List<String> tagNames, List<String> tagIds);
    PageBean<Article> listAll(Integer pageNum, Integer pageSize, Integer categoryId, String state, List<String> tagNames, List<String> tagIds);
    //查找文章
    Article findById(Integer id);
    //更新文章
    void update(Article article);
    //删除文章
    void delete(Integer id);
    PageBean<Article> searchList(Integer pageNum, Integer pageSize,Integer categoryId, String state, List<String> tagNames, List<String> tagIds,String query);

}
